home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 65.zip / BS1 part 65 / DevPac v3.02b.adf / include / exec / semaphores.i < prev    next >
Text File  |  1991-11-20  |  1KB  |  66 lines

  1.     IFND    EXEC_SEMAPHORES_I
  2. EXEC_SEMAPHORES_I    SET    1
  3. **
  4. **    $Filename: exec/semaphores.i $
  5. **    $Release: 1.3 $
  6. **
  7. **    
  8. **
  9. **    (C) Copyright 1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.     IFND EXEC_NODES_I
  14.     INCLUDE "exec/nodes.i"
  15.     ENDC    ; EXEC_NODES_I
  16.  
  17.     IFND EXEC_LISTS_I
  18.     INCLUDE "exec/lists.i"
  19.     ENDC    ; EXEC_LISTS_I
  20.  
  21.     IFND EXEC_PORTS_I
  22.     INCLUDE "exec/ports.i"
  23.     ENDC    ; EXEC_PORTS_I
  24.  
  25.  
  26. *----------------------------------------------------------------
  27. *
  28. *   Semaphore Structure
  29. *
  30. *----------------------------------------------------------------
  31.  
  32.  
  33.  STRUCTURE  SM,MP_SIZE
  34.     WORD    SM_BIDS          * number of bids for lock
  35.     LABEL   SM_SIZE
  36.  
  37.  
  38. *------ unions:
  39.  
  40. SM_LOCKMSG    EQU  MP_SIGTASK
  41.  
  42.  
  43. *----------------------------------------------------------------
  44. *
  45. *   Signal Semaphore Structure
  46. *
  47. *----------------------------------------------------------------
  48.  
  49. * this is the structure used to request a signal semaphore -- allocated
  50. * on the fly by ObtainSemaphore()
  51.  STRUCTURE  SSR,MLN_SIZE
  52.     APTR    SSR_WAITER
  53.     LABEL   SSR_SIZE
  54.  
  55.  
  56. * this is the actual semaphore itself -- allocated statically
  57.  STRUCTURE  SS,LN_SIZE
  58.     SHORT   SS_NESTCOUNT
  59.     STRUCT  SS_WAITQUEUE,MLH_SIZE
  60.     STRUCT  SS_MULTIPLELINK,SSR_SIZE
  61.     APTR    SS_OWNER
  62.     SHORT   SS_QUEUECOUNT
  63.     LABEL   SS_SIZE
  64.  
  65.     ENDC    ; EXEC_SEMAPHORES_I
  66.